package com.zhiyou.homework.compare;

import com.zhiyou.homework.pojo.Grade;

import java.util.Comparator;

public class GradeCompare implements Comparator<Grade> {

    @Override
    public int compare(Grade o1, Grade o2) {
        return o1.getGid()-o2.getGid();
    }
}
